#ifndef CF_SCENE_NODE_H
#define CF_SCENE_NODE_H

#include <QObject>
#include <QFile>

class CF_SceneNode : QObject, cocos2d::Object
{
public:
	CF_SceneNode(const QString& name, const QString& fileName = tr(""));
	~CF_SceneNode();

	const QString& name() const { return m_name; }
	const QString& fileName() const { return m_fileName; }

	QString makeSceneFilePath() const;

	cocos2d::Scene* getScene() { restore(); return m_scene; }
	void setAsCurrentScene();

	bool save();

	void restore();

protected:
	QString m_name;
	QString m_fileName;

	cocos2d::Scene*	m_scene;
};

#endif //  CF_SCENE_NODE_H